package com.riku.security.mapper;

import com.riku.security.model.SeRoleUser;
import com.riku.security.model.SeUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SeRoleUserMapper {
    int deleteByPrimaryKey(Long id);

    int deleteByUserId(SeRoleUser record);

    int insert(SeRoleUser record);

    int insertSelective(SeRoleUser record);

    SeRoleUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SeRoleUser record);

    int updateByPrimaryKey(SeRoleUser record);

    int deleteByRoleId(Long roleId);

    List<SeRoleUser> selectByName(SeRoleUser record);

    List<SeRoleUser> selectRoleUserList(SeRoleUser record);

    List<SeRoleUser> selectDetailByUserId(SeRoleUser record);

    int countByRoleIdUserId(SeRoleUser record);
}